# -*- coding: UTF-8 -*-
'''
Created on 09/10/2014

@author: Eduardo Cardeira - Num 6033

Exemplo 8 da Aula Teorica 3

'''
d1 = {'Programacao 1' : 15, 'Programacao 2' : 13, 'Matematica' : 12, 'Linguagens de Programacao' : 17}
d1 ['Algebra'] = 13

media = 0.0
c = 0

for valor in d1.itervalues():
    media += valor
    c += 1
media /= c

print "media = ", media

for chave, valor in d1.iteritems():
    print chave, valor

